<?php
/**
 * This file holds the basic configurations that is used for Jabberdrive
 * 
 * @author Gustav Knutsson
 **/

// Defines which type of storage node this is, possible values: master , slave
// If master then the slaves will connect to this instance, if slave the you have to connect to the master.
define("JABBERDRIVE_MASTER_SLAVE","master");

// If this instance is slave, then write the address to the jabberdrive master-node,
// If this instance is master, then write nothing here
define("JABBERDRIVE_MASTER_ADDR","");

// Database type to use, can be: mysql, xml, ONLY SUPPORT MYSQL NOW
// TODO add XML type to work.
define("DATABASE_TYPE","mysql");

// Mysql server, eg. localhost
define("MYSQL_HOST","localhost");

// Mysql username, eg. root
define("MYSQL_USER","root");

// Mysql password
define("MYSQL_PASSWORD","");

// Mysql database
define("MYSQL_DATABASE","jabberdrive");

// Fullpath to directory for storage, using trailing slash
define("JABBERDRIVE_STORAGE_AREA","D:/programmering/wamp/www/jabberdrive/Store/");

// Rotation type of the nodes, either 'space' (tries to redistribute the space equal) or 'rr' (Round-robin, just goes in circles)
// TODO Only space working
define("NODE_ROTATION_TYPE","space");

// Database file, normaly jddb.xml
define("DATABASE_FILE",ROOT_PATH."jabberdrive/jdDatabase/jddb.xml");

// Admin username, this is the superadmin user.
define("ADMIN_USERNAME","admin");

// Admin password.
define("ADMIN_PASSWORD","passwordabc123");

// Is the superadmin user active or not, should be disabled immediatley after the first user is created
// Possible values: enabled , disabled
define("USE_ADMIN","enabled");
?>